package com.rybbaby.tss.front.tssAppActivity.service;

import com.rybbaby.tss.core.web.service.IBaseService;
import com.rybbaby.tss.front.tssAppActivity.entity.TssAppActivity;
import com.rybbaby.tss.platform.sysAdminUser.entity.SysAdminUser;

import java.io.Serializable;

/**
 * @description 活动数据库操作服务接口
 * 
 * @author zhangligang
 * 
 * @createDate 2018-01-03 上午9:52:34
 */
public interface ITssAppActivityService extends IBaseService<TssAppActivity> {

    /**
     * @param entity         实体对象
     * @param sessionId      会话Id
     * @param loginUserId    等你用户Id
     * @param fileRelevances 文件关联设置,格式：groupName1=>fieldName1=cacheFileId1,groupName2=>
     * @throws Exception
     */
    public abstract Serializable save(TssAppActivity entity, String sessionId, String loginUserId, String... fileRelevances) throws Exception;

    /**
     * @param entity         实体对象
     * @param sessionId      会话Id
     * @param loginUserId    等你用户Id
     * @param fileRelevances 文件关联设置,格式：groupName1=>fieldName1=cacheFileId1,groupName2=>
     * @throws Exception
     */
    public abstract void updateEntitiy(TssAppActivity entity, String sessionId, String loginUserId, String delteFileIds, String... fileRelevances) throws Exception;


}
